package cn.hackcloud.concurrency.future;

public class FutureTest {
    public static void main(String[] args) throws InterruptedException {
        FutureService<String, Integer> service = FutureService.newService();
        service.submit(input -> input.length(), "Hello", result -> System.out.println(result));

    }


}
